<?php
/**
 * Created by PhpStorm.
 * User: xuewl
 * Date: 2017/12/23
 * Time: 01:35
 */

namespace app\api\controller\v1\wechat\official_account;
use app\api\controller\v1\Init;

/**
 * 模板消息
 * Class TemplateMessage
 * @package app\api\controller\v1\wechat\official_account
 */
class TemplateMessage extends Init
{
    public function _initialize() {
        parent::_initialize();
        $this->model = model('wechat/official_account', 'service');
    }

    public function _empty()
    {
        $action = $this->request->action();
        $result =  $this->model->template_message->$action();
        print_r($result);
    }

}